package com.md.mymusic.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import com.md.livingwidget.CoreBaseActivity;
import com.md.livingwidget.navigation.PHNavigationBar;
import com.md.mymusic.R;

public class AboutActivity extends CoreBaseActivity {

    private PHNavigationBar navBar;
    private TextView tvCheckVersion;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        initNav();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
    }


    private void initNav() {
        navBar = findViewById(R.id.navBar);
        navBar.getLeft1Imgback().setImageResource(R.drawable.ph_black_back);
        navBar.getLeft1Imgback().setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        navBar.getCenterTvTitle().setText(getResources().getString(R.string.mine_about_us));
        navBar.getCenterTvTitle().setTextColor(getResources().getColor(R.color.mine_262626));
        tvCheckVersion = findViewById(R.id.tvCheckVersion);
        tvCheckVersion.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(AboutActivity.this,"建设中!!",Toast.LENGTH_SHORT).show();
            }
        });
    }
}
